<?php

declare(strict_types=1);

namespace App\CustHub\Controller;

use App\CustHub\Annotation\ApiAuth;
use App\CustHub\Annotation\VerifySignature;
use App\CustHub\Service\ChSmartTagChangeLogService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\PostMapping;

#[Controller(prefix: "ch/smart/log"), ApiAuth, VerifySignature]
class SmartTagChangeLogController extends BaseController
{
    #[Inject]
    protected ChSmartTagChangeLogService $service;

    #[PostMapping('list')]
    public function list()
    {
        return $this->success($this->service->getLogList($this->request->all()));
    }
}